package com.tsmti.business.entity;

import com.tsmti.core.common.entity.BaseDataEntity;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.Where;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * @Package：com.tsmti.business.entity
 * @Class：SysSpecialProjectItem
 * @Description： TODO
 * @Author：king
 * @Date：Created in 2018/11/13 14:24
 * @Company:
 * @Version：
 * @Modified By:
 */
@Entity
@Table(name = "SYS_SPECIAL_PROJECT_ITEM")
@DynamicInsert
@DynamicUpdate
@Where(clause = "delFlag = 0")
public class SysSpecialProjectItem extends BaseDataEntity<Long> {
    /**
     *ID
     */
    private Long id;
    /**
     *细项id
     */
    private Long itemId;
    /**
     *数量
     */
    private Long num;
    /**
     *套餐id
     */
    private Long feeFaId;
    /**
     *排序
     */
    private Long feeSort;

    @Id
    @Column(name = "ID")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_SPECIAL_PROJECT_ITEM")
    @SequenceGenerator(name = "SEQ_SPECIAL_PROJECT_ITEM", sequenceName = "SEQ_SPECIAL_PROJECT_ITEM", allocationSize = 1)
    @Override
    public Long getId() {
        return id;
    }
    @Override
    public void setId(Long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "ITEMID")
    public Long getItemId() {
        return itemId;
    }

    public void setItemId(Long itemId) {
        this.itemId = itemId;
    }

    @Basic
    @Column(name = "NUM")
    public Long getNum() {
        return num;
    }

    public void setNum(Long num) {
        this.num = num;
    }

    @Basic
    @Column(name = "FEEFAID")
    public Long getFeeFaId() {
        return feeFaId;
    }

    public void setFeeFaId(Long feeFaId) {
        this.feeFaId = feeFaId;
    }

    @Basic
    @Column(name = "FEESORT")
    public Long getFeeSort() {
        return feeSort;
    }

    public void setFeeSort(Long feeSort) {
        this.feeSort = feeSort;
    }

}
